<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景</title>
    <style type="text/css">
        html,body{
            width: 100%;
            height: 100%;

        }
       /* body{
            background: #fff url(./bg2.png) 0 0 no-repeat;
            background-size: cover;
        }*/
        .box{
            width: 30px;
            height: 30px;
            border: 1px solid red;
            background: #fff url(./bg.png) -110px -50px no-repeat;
           /* background: #fff url(./bg1.png) center no-repeat ;
            background-size: cover;
            background: rgba(12,56,89,0.5);*/

        }
        /*背景定位或者背景精灵*/
    </style>
</head>
<body>
    <div class="box">
    </div>
</body>
</html>